<?php 
if(isset($slug)){
	$paginator->options(array('url' => array('controller' => 'Pages', 'action' => $this->action, 'id' => $slug)));
}
?>
<div class="title">
	<h1><?php echo $pageTitle ?></h1>
	<?php if(isset($rssLink)) echo $html->link('Get Rss', $params['url']['url'].'.rss'); ?>
</div>

<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true));?>
 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>');?>
</div>

<?php foreach($pages as $page): ?>

<?php echo $this->renderElement('pages/_page', array('page' => $page)); ?>

<?php endforeach; ?>

<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>');?>
</div>
